package node;

/**
 * 链表的节点
 * @author yutao
 * @since 2020/4/9 6:31 下午
 */
public class SNode<T> {

    /**
     * 值
     */
    private T element;

    /**
     * 下个节点
     */
    private SNode next;

    public SNode(T element) {
        this.element = element;
    }

    public SNode(T element, SNode next) {
        this.element = element;
        this.next = next;
    }

    public SNode() {
        this.next = null;
    }

    public T getElement() {
        return element;
    }

    public void setElement(T element) {
        this.element = element;
    }

    public SNode getNext() {
        return next;
    }

    public void setNext(SNode next) {
        this.next = next;
    }
}
